import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import "normalize.css"; //将默认样式处理的更为合理
import store from "./store";
import ImgUpload from "./components/img-upload.vue";
import Cloud from "leancloud-storage";
import { installDirectives } from "./directives";
import "animate.css";
Vue.use(ElementUI);
Vue.component("img-upload", ImgUpload); //全局注册组件
//挂载vue2全局自定义指令
installDirectives(Vue);
Vue.config.productionTip = false;
//LeanCloudSDK初始化
Cloud.init({
  appId: "rhDq102KCK9hy1d9HOxUPIzn-gzGzoHsz",
  appKey: "E6dY93Fxcd7Ti35jCTozQi0F",
  serverURL: "https://rhdq102k.lc-cn-n1-shared.com",
});
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
